describe("practice-8-2",function(){
    it("测试返回的名次序列是3,1,2,5,1,3,4",function() {
        var arr_ordinal = [1,2,3,4,5,6,7];
        var arr_score = [5,3,4,7,3,5,6];
        var arr_correct_rank = [3,1,2,5,1,3,4];
        var arr_rank = get_compete_beauty_rank(arr_ordinal,arr_score);
        for(var i = 0; i < arr_rank.length; i ++)
        {
            expect(arr_rank[i]).toBe(arr_correct_rank[i]);
        }
    });
    it("测试返回的名次序列是2,1,3,4,1,2,3",function() {
        var arr_ordinal = [1,2,3,4,5,6,7];
        var arr_score = [5,3,6,7,3,5,6];
        var arr_correct_rank = [2,1,3,4,1,2,3];
        var arr_rank = get_compete_beauty_rank(arr_ordinal,arr_score);
        for(var i = 0; i < arr_rank.length; i ++)
        {
            expect(arr_rank[i]).toBe(arr_correct_rank[i]);
        }
    });
    it("测试返回的名次序列是2,3,5,6,7,1,4",function() {
        var arr_ordinal = [1,2,3,4,5,6,7];
        var arr_score = [3,4,6,7,9,2,5];
        var arr_correct_rank = [2,3,5,6,7,1,4];
        var arr_rank = get_compete_beauty_rank(arr_ordinal,arr_score);
        for(var i = 0; i < arr_rank.length; i ++)
        {
            expect(arr_rank[i]).toBe(arr_correct_rank[i]);
        }
    });
});